package Util;

import java.io.File;

public class FolderCreator {
    private static final String [] folders = {".\\main\\", ".\\cipher text\\", ".\\plain text\\", ".\\keys\\", ".\\eveA cipher text\\", ".\\eveB cipher text\\"};

    public static void createFolders(){
//        System.out.println("checking for needed folders:");
        File folder;

        for(String dir: folders){
            folder = new File(dir);
//            System.out.print(dir + " ");
            if(!folder.exists()){
                folder.mkdir();
                System.out.println("folder "+dir+" was created!");
            }
//            else{
//                System.out.print("folder exists...");
//            }
        }

//        System.out.println("\nfolders ready.\n");

    }
}
